/*
* Entourage
* Copyright 2011 INF532@Galatasaray University & Vincent Labatut 
* 
* This file is part of Entourage.
* 
* Entourage is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* 
* Entourage is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with Entourage. If not, see <http://www.gnu.org/licenses/>.
* 
*/

package com.appspot.entourage.graphtools;

/**
 * This class is used to represent persons as graph node
 * @author Berk PELENK <bpelenk@beengames.com>
 * @version 1
 *
 */
public class GraphNode {
	private String guid;
	private String name;
	private String surname;
	
	/**
	 * This is the constructor method
	 * @param guid Freebase guid of the person
	 * @param name Name of the person
	 * @param id identity number used by graphml
	 * @param surname Surname of the person
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public GraphNode(String guid, String name, String surname)
	{
		this.guid = guid;
		this.name = name;
		this.surname = surname;
	}
	
	/**
	 * This method returns the guid data of the node
	 * @return guid data
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public String getGuid()
	{
		return guid;
	}
	
	/**
	 * This method returns the full name data of the node
	 * @return full name data
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public String getFullName()
	{
		return name + " " + surname;
	}
	
	/**
	 * This method returns the name data of the node
	 * @return name data
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public String getName()
	{
		return name;
	}
	
	/**
	 * This method returns the surname data of the node
	 * @return surname data
	 * @author Berk PELENK <bpelenk@beengames.com>
	 */
	public String getSurname()
	{
		return surname;
	}
}
